/**
 * 
 */
package evolution.mlp.neurons;

import java.util.HashMap;

/**
 * @author camille
 * 
 */
public abstract class Neuron {
	protected HashMap<Neuron, Double> in;
	protected HashMap<Neuron, Double> out;

	public Neuron() {
		in = new HashMap<Neuron, Double>();
		out = new HashMap<Neuron, Double>();
	}

	public void addIn(Neuron n, Double w) {
		in.put(n, w);
	}

	public void addOut(Neuron n, Double w) {
		out.put(n, w);
	}

	public HashMap<Neuron, Double> getIn() {
		return in;
	}

	public HashMap<Neuron, Double> getOut() {
		return out;
	}

	public abstract double getValue();
}
